package com.cqjtu.drive.controller;

import com.cqjtu.drive.pojo.Exam;
import com.cqjtu.drive.response.Response;
import com.cqjtu.drive.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zxl
 * @Date 2024/6/19 17:00
 */

@RestController
public class ExamController {

    @Autowired
    ExamService examService;

    @PostMapping("/api/exam/insert")
    public Response<String> insertOne(@RequestBody Exam exam){
        return examService.insertExam(exam);
    }
}
